package com.company.project.service;

import com.company.project.dao.UPermissionMapper;
import com.company.project.model.UPermission;
import com.company.project.service.UPermissionService;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;

/**
 * Created by generator.CodeGenerator on 2018/01/14.
 */
@Service
@Transactional
public class UPermissionService{

    @Autowired
    private UPermissionMapper uPermissionMapper;

    public void save(UPermission uPermission)
    {
        uPermissionMapper.insertSelective(uPermission);
    }

    public void deleteById(UPermission uPermission)
    {

    }

    public void update(UPermission uPermission)
    {

    }


    public UPermission findById(UPermission uPermission)
    {

        return null;
    }

    public List<UPermission>  list(UPermission UPermission , Integer page, Integer size)
    {
        PageHelper.startPage(page, size);
        return null;
    }

}
